Collaboration diagram for XFcVector3:

Public Member Functions | |
| XFcVector3 () | |
| Empty constructor. | |
| XFcVector3 (REAL aX, REAL aY, REAL aZ) | |
| Creation from 3 REALs. | |
| XFcVector3 & | operator+= (const XFcVector3 &aVec) |
| Adds components of another vector to this vector. | |
| XFcVector3 | operator+ (const XFcVector3 &aVec) const |
| Adds components of another vector to this vector. | |
| XFcVector3 | operator+ (const INT32 aArg) const |
| Adds an integer value to each component of this vector. | |
| XFcVector3 | operator+ (const FLOAT32 aArg) const |
| Adds a floating point value to each component of this vector. | |
| XFcVector3 & | operator-= (const XFcVector3 &aVec) |
| Subtracts components of another vector from this vector. | |
| XFcVector3 | operator- (const XFcVector3 &aVec) const |
| Subtracts components of another vector from this vector. | |
| XFcVector3 | operator- (const INT32 aArg) const |
| Subtracts an integer value from each component of this vector. | |
| XFcVector3 | operator- (const FLOAT32 aArg) const |
| Subtracts a floating point value from each component of this vector. | |
| XFcVector3 & | operator *= (const INT32 aArg) |
| Multiplies components of this vector with an integer value. | |
| XFcVector3 & | operator *= (const FLOAT32 aArg) |
| Multiplies components of this vector with a floating point value. | |
| XFcVector3 | operator * (const INT32 aArg) const |
| Multiplies components of this vector with an integer value. | |
| XFcVector3 | operator * (const FLOAT32 aArg) const |
| Multiplies components of this vector with a floating point value. | |
| XFcVector3 & | operator/= (const INT32 aArg) |
| Divides components of this vector with an integer value. | |
| XFcVector3 & | operator/= (const FLOAT32 aArg) |
| Divides components of this vector with a floating point value. | |
| XFcVector3 | operator/ (const INT32 aArg) const |
| Divides components of this vector with an integer value. | |
| XFcVector3 | operator/ (const FLOAT32 aArg) const |
| Divides components of this vector with a floating point value. | |
| XFcVector3 | operator+ (const REAL &aArg) const |
| Adds a REAL value to each component of this vector. | |
| XFcVector3 | operator- (const REAL &aArg) const |
| Subtracts a REAL value from each component of this vector. | |
| XFcVector3 & | operator *= (const REAL &aArg) |
| Multiplies components of this vector with a REAL value. | |
| XFcVector3 | operator * (const REAL &aArg) const |
| Multiplies components of this vector with a REAL value. | |
| XFcVector3 & | operator/= (const REAL &aArg) |
| Divides components of this vector with a REAL value. | |
| XFcVector3 | operator/ (const REAL &aArg) const |
| Divides components of this vector with a REAL value. | |
| XFcVector3 | operator- () const |
| Negates all components of this vector. | |
| REAL | dotProduct (const XFcVector3 &aVec) |
| Returns dot product of this vector with an another vector. | |
| XFcVector3 | crossProduct (const XFcVector3 &aVec) |
| Returns cross product of this vector with an another vector. | |
| REAL | length () |
| Returns length of this vector. | |
| REAL | lengthSq () |
| Returns squared length of this vector. | |
| void | normalize () |
| Normalizes this vector. | |
| void | normalizeFast () |
| Normalizes this vector. This is fast but has problems with large vectors. | |
| void | pseudoNormalize () |
| "Normalizes" this vector to length between 1 and 2. This can be used to make fixed point vector math safe. | |
Public Attributes | |
| REAL | x |
| The vector components. | |
| REAL | y |
| The vector components. | |
| REAL | z |
| The vector components. | |
Friends | |
| XFcVector3 | operator * (const INT32 aArg, const XFcVector3 &aVec) |
| Multiplies components of a vector with an integer value. | |
| XFcVector3 | operator * (const FLOAT32 aArg, const XFcVector3 &aVec) |
| Multiplies components of a vector with a floating point value. | |
| XFcVector3 | operator/ (const INT32 aArg, const XFcVector3 &aVec) |
| Divides components of a vector with an integer value. | |
| XFcVector3 | operator/ (const FLOAT32 aArg, const XFcVector3 &aVec) |
| Divides components of a vector with a floating point value. | |
| XFcVector3 | operator * (const REAL &aArg, const XFcVector3 &aVec) |
| Multiplies components of a vector with a REAL value. | |
| XFcVector3 | operator/ (const REAL &aArg, const XFcVector3 &aVec) |
| Divides components of a vector with a REAL value. | |
Typical vector operators implemented.
|
|
Empty constructor.
|
|
||||||||||||||||
|
Creation from 3 REALs.
|
|
|
Returns cross product of this vector with an another vector.
|
|
|
Returns dot product of this vector with an another vector.
|
|
|
Returns length of this vector.
|
|
|
Returns squared length of this vector.
|
|
|
Normalizes this vector.
|
|
|
Normalizes this vector. This is fast but has problems with large vectors.
|
|
|
Multiplies components of this vector with a REAL value.
|
|
|
Multiplies components of this vector with a floating point value.
|
|
|
Multiplies components of this vector with an integer value.
|
|
|
Multiplies components of this vector with a REAL value.
|
|
|
Multiplies components of this vector with a floating point value.
|
|
|
Multiplies components of this vector with an integer value.
|
|
|
Adds a REAL value to each component of this vector.
|
|
|
Adds a floating point value to each component of this vector.
|
|
|
Adds an integer value to each component of this vector.
|
|
|
Adds components of another vector to this vector.
|
|
|
Adds components of another vector to this vector.
|
|
|
Negates all components of this vector.
|
|
|
Subtracts a REAL value from each component of this vector.
|
|
|
Subtracts a floating point value from each component of this vector.
|
|
|
Subtracts an integer value from each component of this vector.
|
|
|
Subtracts components of another vector from this vector.
|
|
|
Subtracts components of another vector from this vector.
|
|
|
Divides components of this vector with a REAL value.
|
|
|
Divides components of this vector with a floating point value.
|
|
|
Divides components of this vector with an integer value.
|
|
|
Divides components of this vector with a REAL value.
|
|
|
Divides components of this vector with a floating point value.
|
|
|
Divides components of this vector with an integer value.
|
|
|
"Normalizes" this vector to length between 1 and 2. This can be used to make fixed point vector math safe.
|
|
||||||||||||
|
Multiplies components of a vector with a REAL value.
|
|
||||||||||||
|
Multiplies components of a vector with a floating point value.
|
|
||||||||||||
|
Multiplies components of a vector with an integer value.
|
|
||||||||||||
|
Divides components of a vector with a REAL value.
|
|
||||||||||||
|
Divides components of a vector with a floating point value.
|
|
||||||||||||
|
Divides components of a vector with an integer value.
|
|
|
The vector components.
|
|
|
The vector components.
|
|
|
The vector components.
|
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch | ||